const webpack = require('webpack');
const path = require('path');

module.exports = {
    output: {
      path: path.resolve(__dirname, 'ddl'),
      filename: '[name].js',
      library: '[name]',
    },
    entry: {
        "vendor": [
            'react',
            'react-dom',
            'antd',
            'mobx'
        ],
    },
    plugins: [
        new webpack.DllPlugin({
            // 生成的映射关系文件
            path: 'manifest.json',
            name: '[name]',
            context: __dirname,
        })
    ]
};